﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace GameName1
{
    class SpaceShip : GameObject
    {
        public IWeapon Weapon { get; set; }

        public SpaceShip(Vector2 position)
        {
            this.Position = position;
            
        }
        protected SpaceShip()
        {

        }


        public override Vector2 Velocity { get; set; }
        public override Vector2 Position { get; set; }

        public override void HandleHit()
        {
            throw new NotImplementedException();
        }

        public override void Move()
        {
            Position += Velocity;
            //Position.X += Velocity.X;
            //Position.Y += Velocity.Y;
            Velocity = new Vector2(0,0);
        }

        public void Fire()
        {
            Weapon.Fire(Position);
        }
    }
}
